<template>
  <view>
    <view class="spItem" @click="goPage('/pages/shop/xmDetails')">
      <image src="" mode="aspectFill" />
      <view class="title">【光子嫩肤|全模式】AOPT 黄金超光子*3次+嗨体2.5</view>
      <view class="price"><text>券后￥</text>8888 <view class="label">立省￥200</view></view>
      <view class="sub">杭州艺星医疗美...</view>
    </view>
  </view>
</template>
<script setup lang="ts">
import { goPage } from "@/utils/commonFn";
</script>
<style lang="less" scoped>
.spItem {
  margin-bottom: 20rpx;
  image {
    width: 336rpx;
    height: 252rpx;
    border-radius: 16rpx;
    background: red;
  }
  .title {
    font-size: 26rpx;
    color: #333333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 设置为想要的行数 */
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .price {
    display: flex;
    align-items: center;
    font-size: 36rpx;
    color: #ea3b3b;
    margin-top: 10rpx;
    text {
      font-size: 24rpx;
    }
    .label {
      background: rgba(255, 63, 64, 0.1);
      border-radius: 8rpx;
      font-size: 22rpx;
      margin-left: 10rpx;
      padding: 3rpx 6rpx;
    }
  }
  .sub {
    font-size: 24rpx;
    color: #8a8a8d;
  }
}
</style>
